{
 "cells": [
  {
   "cell_type": "code",
   "execution_count": 8,
   "id": "e27d466a",
   "metadata": {},
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "1670237673.9177039\n",
      "<class 'float'>\n",
      "<class 'module'>\n"
     ]
    }
   ],
   "source": [
    "import time\n",
    "print(time.time())\n",
    "print(type(time.time()))\n",
    "print(type(time))"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 3,
   "id": "5da0bed7",
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "time.struct_time"
      ]
     },
     "execution_count": 3,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "type(time.localtime())"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 5,
   "id": "a5f51f56",
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "time.struct_time(tm_year=2022, tm_mon=12, tm_mday=5, tm_hour=18, tm_min=44, tm_sec=56, tm_wday=0, tm_yday=339, tm_isdst=0)"
      ]
     },
     "execution_count": 5,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "time.localtime(1670237096)"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 10,
   "id": "42414f64",
   "metadata": {},
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "2022-12-05 18:44:56\n"
     ]
    }
   ],
   "source": [
    "\n",
    "print (time.strftime(\"%Y-%m-%d %H:%M:%S\", time.localtime(1670237096)))"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": null,
   "id": "ce34dd59",
   "metadata": {},
   "outputs": [],
   "source": []
  }
 ],
 "metadata": {
  "kernelspec": {
   "display_name": "python",
   "language": "python",
   "name": "python3"
  },
  "language_info": {
   "codemirror_mode": {
    "name": "ipython",
    "version": 3
   },
   "file_extension": ".py",
   "mimetype": "text/x-python",
   "name": "python",
   "nbconvert_exporter": "python",
   "pygments_lexer": "ipython3",
   "version": "3.9.7"
  }
 },
 "nbformat": 4,
 "nbformat_minor": 5
}
